
import { HTTP } from '../utils/request';
const http = new HTTP();

// 新增银行卡
export function createBankCard({bankName,bankAccount}){
  return http.request({
    url: '/v1/applet/bank/card/create',
    method: 'post',
    data: {
      'bankName': bankName, // 银行名称
      'bankAccount': bankAccount, // 银行卡号
    }
  })
}

// 删除银行卡
export function deleteBankCard(bankCardId){
  return http.request({
    url: '/v1/applet/bank/card/delete/' + bankCardId,
    method: 'post',
    data: {},
  })
}

// 银行卡列表
export function getBankCard({page,size = 10}){
  return http.request({
    url: '/v1/applet/bank/card/list',
    method: 'post',
    data: {
      'pageIndex': page,
      'pageSize': size,
    },
  })
}